import { stringify } from "qs";
import request from "@/utils/request";

export async function List(params) {
  return request(`risk/education/query`, {
    method: "POST",
    body: {
      ...params
    }
  });
}

export async function remove(params) {
  return request(`/risk/education/delete/${params.code}`, {
    method: "POST",
    body: {}
  });
}

export async function add(params) {
  return request("/risk/education/add", {
    method: "POST",
    body: {
      ...params
    }
  });
}
export async function riskEduSort(params) {
  return request("/risk/education/sort/change", {
    method: "POST",
    body: {
      ...params
    }
  });
}

export async function edit(params) {
  return request("/risk/education/edit", {
    method: "POST",
    body: {
      ...params
    }
  });
}

export async function deptQuery(params) {
  return request("/merchant/query", {
    method: "POST",
    body: params
  });
}

export async function clientDetail(params) {
  return request(`/risk/education/detail/${params.riskNo}`, {
    method: "POST",
    body:{}
  });
}

export async function brandChange(params) {
  return request("/brand/sort/change", {
    method: "POST",
    body: params
  });
}
export async function brandList(params) {
  return request("/merchant/brand/list", {
    method: "POST",
    body: {}
  });
}

export async function status(params) {
  return request("/risk/education/status/update", {
    method: "POST",
    body: params
  });
}
